package com.rt.cms.dao;


import com.rt.cms.data.entity.CompanyInfoBean;
import com.rt.cms.data.entity.TbCompanyInfo;
import com.rt.cms.data.entity.TbCompayUploadInfo;
import com.rt.cms.data.requestParam.ArchivesParams;
import com.rt.cms.data.requestParam.CompanyParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbCompanyInfoMapper {


    int insertCompanyInfo(TbCompanyInfo tbCompanyInfo);


    int insertCompanyUploadInfo(TbCompayUploadInfo tbCompayUploadInfo);

    int insertCompanyRelate(@Param("companyId") Integer companyId, @Param("guarantorId") Integer guarantorId, @Param("id") Integer id);

    int updateCompanyInfo(TbCompanyInfo tbCompanyInfo);

    int updateCompanyBasicInfo(TbCompanyInfo tbCompanyInfo);

    int updateCompanyUploadInfo(TbCompayUploadInfo tbCompayUploadInfo);


    List<CompanyInfoBean> queryCompanyInfos();


    CompanyInfoBean getCompayInfoBean(int id);

    List<TbCompanyInfo> getCompanyInfoByBusinessCode(String businessCode);

    TbCompanyInfo getCompanyInfoById(int id);

    TbCompayUploadInfo getCompanyUploadInfoById(int id);

    List<CompanyInfoBean> getGuaranteeCompanyInfoBean(int id);

    //List<TbCompanyInfo> getCompanyInfo();

    List<TbCompanyInfo> selectByParam(@Param("params") CompanyParam companyParam);

    Long selectCount();

    List<TbCompanyInfo> selectByPhpParam(@Param("params") ArchivesParams archivesParams);

    int updateByPhpParam(@Param("params") ArchivesParams archivesParams,@Param("uuid") String uuid);


}
